home *** CD-ROM | disk | FTP | other *** search
/ USA Bestseller / USA BESTSELLER Vol 1-95 (Hepp-Computer)(1995).iso / e065 / mirintro.doc < prev    next >
Text File  |  1994-04-22  |  41KB  |  650 lines

  1.  
  2.  
  3.  
  4.          INTRODUCING THE MIRAGE GRAPHICAL DATA ANALYSIS SOFTWARE
  5.  
  6.      The 4 subdirectories below the C:\MIRAGE\EXAMPLES\COMPUTER directory 
  7.    contain files necessary to complete each of the 4 ascending steps that are
  8.    required to gain a thorough understanding of the capabilities of this 
  9.    software. I would also strongly recommend that as you work through the 
  10.    tutorial, you fully utilize the context-sensitive help that is available 
  11.    for most dialog boxes and menu commands. From the dialog boxes, click on 
  12.    the Help button. If you need help on any of the menu commands, select 
  13.    Help-Index from the main menu. 
  14.  
  15.        
  16. -------------------------------------------------------------------    
  17.    1.                   MIRAGE  FUNDAMENTALS
  18. -------------------------------------------------------------------
  19.  
  20.  
  21.     As pointed out in readme.doc, the main objective behind this software is to 
  22.   to provide the tools that will allow a user to graphically visualize the 
  23.   content of his or her data. The data has preferably been set up already via a
  24.   spreadsheet or a database.  Mirage accepts tab delimited text files as 
  25.   input and the capability to generate this format is provided for in most 
  26.   spreadsheet and database packages. However, you can still edit your data
  27.   within Mirage and perform basic spreadsheet commands such as cut, copy, 
  28.   and paste.
  29.   
  30.     In fact, changing values in your data sheet will be necessary to perform
  31.   some types of what-if analysis. An important note to remember is that the 
  32.   input .txt file must always be in a rectangular table format.  The first
  33.   row of the file will correspond to the column names  ( which can also be 
  34.   termed an attribute), and the subsequent rows should be the actual data 
  35.   for each column name.  Mirage accepts three types of data : floating point,
  36.   integer, and text.  Mirage classifies any cell that contains only numerical
  37.   values  without a decimal point (i.e. 67, 6789, 9803)  as integer. Cells 
  38.   which contain numerical values only with  a decimal point appearing
  39.   somewhere are classified as floating point (i.e. 0.98, .008,  94.34).  
  40.   Everything else is classifed as textual information by  Mirage. Another 
  41.   important note to remember is that the data residing in each column must 
  42.   be of the same data type. You never need to explicitly specify the 
  43.   attribute ( or column name) data type but the program will automatically
  44.   detect inconsistent data types in any particular table column and will 
  45.   complain about it when you are ready to perform your graphical analysis. 
  46.   At that point you will need to go back and edit your data sheet. 
  47.   
  48.   
  49.        At this point in time, click on the Mirage icon that you had
  50.   created on one of your Program Manager's group windows. You will notice  
  51.   the main window in Mirage is actually a four way splitter window. It is 
  52.   always a good idea to maximize the main window if it is not already 
  53.   maximized. Click on any one of the four windows and notice that the 
  54.   contents within that window are displayed in red to signify the currently 
  55.   active window. If you click on the button with the two red up and down 
  56.   arrows displayed below the menu, the currently active window is temporarily
  57.   maximized with respect to the main window. Click on the button again to 
  58.   resize the splitter windows. If you move the mouse cursor to the 
  59.   intersection of the four windows, the cursor turns into a plus shape. 
  60.   Click on the mouse while the cursor is a plus shape and drag the mouse to 
  61.   resize the relative position of the four windows if you want to. 
  62.  
  63.       The upper left window houses the data sheet which is to be analyzed. 
  64.   Notice the first row is grayed because unlike the other rows which contain
  65.   the actual data, the first row contains the attribute names.  The upper 
  66.   right window houses the extra variables which are defined by the user and 
  67.   are primarily used as scratch variables by the expert system during the 
  68.   data analysis process.  As you shall see later, these extra variables can 
  69.   also be graphically displayed just like the attributes from the data sheet 
  70.   and can be a valuable source of insight during the analysis. Another 
  71.   important constraint to mention at this time is that the set of attribute 
  72.   names and extra variable names must all be unique with respect to each 
  73.   other. 
  74.  
  75.      Unlike the upper two windows, the contents of the lower two windows 
  76.   cannot be directly modified by entering data into the cells. They can only
  77.   be modified via the use of various dialog boxes and menu commands. The 
  78.   lower left window contains the display variables which are extracted from 
  79.   within the set of attribute names and extra variables.  The user specifies 
  80.   the desired minimum and maximum values for each display variable. In order 
  81.   for any attribute or extra variable to be displayed, it must first be 
  82.   selected to be in the list of display variables with a specified minimum 
  83.   and maximum. The need to specify minimum and maximum values and how to 
  84.   display textual attributes will be explained later on. The lower right 
  85.   window houses the list of rules which comprise the expert system. 
  86.   Utilization of the expert system is optional, and its utility in performing
  87.   data analysis will be shown in step 3 of the computer purchase example.  
  88.  
  89.      At this point in time, a brief synopsis of the data analysis process is 
  90.   in order. The user first imports a .txt data file containing a data sheet
  91.   with the first row containing the attribute names and the other rows 
  92.   containing the actual data which can be of three different types ( integer,
  93.   float, or text). The user wishes to analyze the content of the information 
  94.   contained in each row as he traverses down the data sheet. For a very 
  95.   simple analysis, the user clicks on the "Display-Edit display list" command 
  96.   and selects the attributes which he wishes to analyze. He also specifies a
  97.   theoretical minimum and maximum for the attribute and this information
  98.   becomes part of the display variables window in the lower left corner of 
  99.   the main Mirage window. Then the user clicks on the Display Graphics 
  100.   command to bring up the Mirage graphics window. He activates the display 
  101.   variables which he wishes to analyze so that for each active variable, the 
  102.   graphics window gives birth to a mini-attribute window that will display 
  103.   a color according to the strength of an attribute with respect to the 
  104.   minimum and maximum specified by the user.  The user also has the option
  105.   of adding new attributes in the data sheet which will be filled by values
  106.   that reflect the results from the course of the data analysis. The modified
  107.   data sheet which possibly includes the new attributes being discussed can
  108.   then be exported to a .txt tab delimited text file ready to be sent back
  109.   to a spreadsheet or a database. This entire process will become much clearer
  110.   as we embark upon our computer purchasing example.
  111.  
  112.  
  113. ---------------------------------------------------------------------------
  114.     2.                  COMPUTER PURCHASE ANALYSIS  
  115. ---------------------------------------------------------------------------
  116.  
  117.       Let us suppose that you are in the market to purchase a personal 
  118.   computer for your home or business. You have compiled a table of 
  119.   information in your favorite spreadsheet or database and have created a 
  120.   .txt which is called computer.txt.  Start up Mirage if you have not already 
  121.   done so, and then click on "Import-Table Data + Attribute Names" from the 
  122.   menu.  The files dialog will appear. Select the directory named
  123.   "C:\MIRAGE\EXAMPLES\COMPUTER\STEP1" and then choose computer.txt from the 
  124.   files dialog by double clicking on it. You should always remember that 
  125.   importing a new data sheet will force any information saved in the present 
  126.   data sheet to be lost. This is not a problem for us right now because we 
  127.   have a blank data sheet to begin with. Notice that some of the attribute 
  128.   names are not completely visible.  Move the mouse cursor to the first row of
  129.   any attribute column whose attribute name is partially hidden and position 
  130.   it at its border with the cell to its right. You will notice the shape of 
  131.   the cursor changes to a double arrow. Click the mouse and drag it to the 
  132.   right so that the column width is expanded and the text is completely 
  133.   visible. Repeat this procedure for any other columns that need to be 
  134.   expanded. 
  135.   
  136.    A brief note here on the difference between importing .txt files and 
  137.   opening binary files. You use the import and export commands to move the
  138.   contents of the data sheet back and forth to ascii tab delimited .txt 
  139.   files. You use the File-Open, File-Save, and File-Save As commands on 
  140.   the menu to open and save Mirage binary files ( .mrg extension). Mirage 
  141.   binary files save the contents of the current session in its current 
  142.   state. 
  143.   
  144.        Now, lets start off with a very simple example. Suppose you do not
  145.   care about any specific features that a system comes with. Your only 
  146.   concern is that you purchase a 486 system or better ( all the systems
  147.   in the data sheet are) and your decision is going to be based solely
  148.   on the price of the complete system. Since the systems vary in price
  149.   from around the $2000 mark up to around $4000, a good minimum and 
  150.   maximum might be from between $2000 to $4000. Click on the Display
  151.   menu item and select Edit Display List. This brings up the Edit Display
  152.   List dialog. This dialog consists of three list boxes. The box on the
  153.   left contains all the attributes from the data sheet. The box on the
  154.   upper right contains the list of extra variables ( we have none right now).
  155.   The box on the bottom right contains the list of display variables that
  156.   you will select from the list of attributes and extra variables. So
  157.   click on Total Cost from the upper left list box and then click on the Add
  158.   button. Clicking the add button brings up a small dialog box where you 
  159.   can specify the desired minimum and maximum values for the selected
  160.   display variable. Enter 2000 and 4000 for min and max and then click on
  161.   OK. Then Click on OK from the Edit Display List dialog box. You will 
  162.   now notice that Total Cost has been added to the display variables window
  163.   located in the lower left side of the main window. 
  164.   
  165.        We are now ready to bring up the graphics display window. You can
  166.   do this in either of two ways. You can select Display-Graphics Window
  167.   from the menu or you can click on the rightmost bitmap button
  168.   containing the overlapping colored squares. From the graphics window
  169.   select Edit-Active Variables List. This brings up a dialog box which contains
  170.   a list of all display variables. Click on the sole display variable that
  171.   is listed in the list box so that the item is highlighted. Then click on
  172.   OK. Mirage will create a mini-window for the newly activated display
  173.   variable. The embedded control box on the right corner of the graphics 
  174.   window contains the name of the attribute which will be your control variable.
  175.   By default it is the first column in your data sheet but you can change
  176.   the control variable to be any attribute by selecting Edit-Change Control
  177.   Variable. Now, go to the control box and click on the first item which
  178.   selects the model CompuShop1. You will notice that the Cost mini-window turns
  179.   red and the small display box on its upper left displays the number 0.
  180.   Now is a good time to explain the details of how the colors inside the
  181.   mini-windows are displayed.
  182.   
  183.      For each selection from the control box, all the mini-windows
  184.   will display a particular color in accordance to the quantitative value
  185.   of the display variable for that particular row. Right now, by clicking
  186.   on the first selection on the control box, we are analyzing the data
  187.   from the first row in the data sheet ( pertaining to the CompuShop1 model).
  188.   The exact color value varies from 0 to 255 and this value is displayed
  189.   on the small display box in the mini-window. Also, the scroll bar for the
  190.   mini-window scrolls downward in proportion to the strength of the color
  191.   value between the interval from 0 to 255. The color value is dependent
  192.   upon what the value for that attribute ( or extra variable as you shall
  193.   see later) is in relation to the minimum and maximum specified for it
  194.   in the display variables list. Thus, for our present example, the cost
  195.   of the CompuShop1 model is $2000 which lies exactly at the minimum of our 
  196.   specified interval of between $2000 and $4000. Thus, the color value
  197.   calculated was 0. Now, click on the next item from the control box.
  198.   The new color value is 89 and the color has changed. How was the new
  199.   color value calculated ? Well, here is the exact formula:
  200.   
  201.   colorvalue = ( value from data sheet  -  min.from display var list) X (255)
  202.                    -----------------------------------------------------
  203.                ( max. from display var list  -  min. from display var list)
  204.                        
  205.   
  206.   Note that the 255 denotes the maximum color value. This formula allows
  207.   the colorvalue to be in proportion to where the actual value lies within
  208.   the specified min. and max. intervals. 
  209.   
  210.   Now, the next question is how was the color displayed on the mini-window
  211.   selected ? Well, what Mirage does is to take each of the 256 possible
  212.   color values and maps it to a color based on the RGB spectrum. Any 
  213.   color you see on your VGA or superVGA display is made up of a combination
  214.   of red, green, or blue colors mixed in a proportion to produce distinctive
  215.   colors. If each of the three colors is assigned a value between 0 and 255,
  216.   then any color in the RGB spectrum can be produced by varying the color
  217.   value for any of the three basic colors. Now, in Mirage the colors
  218.   are calculated as follows : When the calculated color value moves from
  219.   0 to 127, the blue contribution is kept at 0 and the red value goes from
  220.   255 to 0. Also at the same time the green value moves up from 0 to 255.
  221.   Essentially, you are moving from red to green in the RGB spectrum as the 
  222.   color value moves from 0 to 127. 
  223.   
  224.   When the color value for a mini-window moves from 127 to 255, the red value
  225.   contribution is kept at 0, the green value moves down from 255 to 0, and
  226.   the blue values moves up from 0 to 255. Thus, the spectrum will move from
  227.   pure green for a color value of 127 to pure blue for a color value of 255.
  228.   
  229.   You should remember a couple of things at this point in time. VGA only
  230.   has a pallette of 16 colors. Thus, although the numerical color value
  231.   displayed on the mini-window is exact as is the proportion by which the
  232.   scroll bar moves, 16 different color values are mapped to the same color
  233.   in the RGB spectrum. Super VGA has a pallette of 256 colors. Thus, each
  234.   color value will have its own display color. However, most of the colors
  235.   will appear dithered as this is a hardware limitation. 
  236.   
  237.       Click on different items in the control box and watch the window
  238.   colors change. Examine the value for the attribute Cost from the data
  239.   sheet and confirm that the color value is in proportion to where the
  240.   the actual value of the data sheet is with respect to the min. and max.
  241.   interval. Click on Color from the Graphics Window menu. You will see
  242.   that the menu item RGB Spectrum has a check mark next to it as this is
  243.   the default. Select GrayScale and exit the menu ( the check mark will
  244.   toggle between RGB Spectrum and GrayScale ) . Now, click again on various
  245.   items from the control box and note that Mirage now maps the colors into
  246.   GrayScale with a color value of 0 being white and a color value of 255
  247.   being black. 
  248.   
  249.       Next, select the Action Go command from the graphics menu. You will
  250.   see the items in the control box being selected from top to bottom as
  251.   Mirage calculates the respective color for the Cost attribute. Then 
  252.   select Action-Replay mode ( when the Replay mode is selected, a check
  253.   mark is present next to the menu item ). Now, go to the control box scroll
  254.   bar and click on the up arrow so that the first item in the control box
  255.   is now selected. Now, click on the down arrow and keep the left mouse
  256.   button pressed. The difference between replay mode and non-replay mode
  257.   is that during replay mode Mirage is not calculating the color values.
  258.   The color values have been saved when you ran Action Go and Mirage is
  259.   simply displaying those color values. The advantage of doing this may
  260.   not be readily apparent until you perform more sophisticated analysis
  261.   and invoke the expert system. Then, when you select Action Go, Mirage
  262.   may not be able to calculate as quickly and therefore you will not be
  263.   able to graphically visualize the change in information as quickly if
  264.   you had to rely solely on it. Thus, in replay mode the mini-windows 
  265.   are updated much more swiftly and this smooth and continuous color
  266.   transition is essential for the user to gain the intuitive insight
  267.   into the meaning of the data which is what Mirage is all about. At
  268.   this point in time, I need to mention a couple of things about Replay
  269.   mode. The first is that data analysis in Replay mode can only be
  270.   performed by clicking on the up and down arrows located in the control
  271.   box scroll bar and keeping the mouse button depressed ( in other words
  272.   you cannot move the scroll bar shaft from top to bottom and expect the
  273.   mini-window colors to be continuously updated ). The other point about
  274.   Replay mode is that it can only be utilized immediately after ( and only
  275.   immediately after ) you run Action Go. Thus, if you run Action Go and then
  276.   invoke a dialog box or do something else other than enter Replay mode,
  277.   and yet later on attempt to enter Replay mode, you will be prompted to
  278.   run Action Go again. 
  279.   
  280.   Although it does not make much of a difference right now because we
  281.   only have one mini-window in the graphics window, it should be noted
  282.   that the mini-windows can be moved around within the graphics window.
  283.   The advantage to doing this will be seen when you have many mini-windows
  284.   open at the same time and there is a need to position two or more
  285.   specific windows next to each other so that their relative strengths
  286.   can be visualized more easily.
  287.   
  288.        One last point before we finish the first step in the computer
  289.   example tutorial is to mention that you can activate the main Mirage
  290.   window while the graphics window is present, edit values in the 
  291.   data sheet or the extra variables sheet, and re-activate the graphics
  292.   window to see the different results based upon the different values.
  293.   However, keep in mind that other than editing the upper two sheets
  294.   you cannot perform any of the other commands from the main window menu
  295.   ( the commands are dimmed to indicate that they are disabled ). In order
  296.   to reactivate the main menu and perform all the commands, you must
  297.   close the graphics window ( the state of the graphics window is saved
  298.   when you do this so that when you re-open it, you can start off where
  299.   you previously left off). You close the graphics window by activating 
  300.   the system menu button in the extreme upper left corner of the graphics 
  301.   window and then selecting Close.
  302.   
  303.        Now that you are exposed to some of the capabilities and features
  304.   of Mirage, we can start doing some more advanced analysis in step 2,
  305.   including utilizing the composite windows and performing textual mapping.          
  306.   Click on the File-Save command from the main menu and save the current
  307.   session in a .mrg file (mirage binary file) .  
  308.   
  309.  
  310.  
  311. ---------------------------------------------------------------------------
  312.   3.   INVOKING TEXTUAL DATA MAPPING AND UTILIZING COMPOSITE WINDOWS
  313. ---------------------------------------------------------------------------
  314.  
  315.    
  316.      For this section, open the computer.mrg file in the directory named
  317.    C:\MIRAGE\EXAMPLES\COMPUTER\STEP2 .
  318.     
  319.      Lets suppose that instead of merely looking at cost and making our
  320.    purchase decision solely upon the basis of cost, we also strongly favor
  321.    purchasing a PC powered by an til chip. That is, on a scale of 1 to 10,
  322.    we wish to assign a value of 10 for a Lentil chip, a value of 6 for an
  323.    IBW chip, and a value of 5 for a MAD chip. You will notice that since the
  324.    Processor Brand attribute in the data sheet is a text column ( it contains
  325.    textual information as opposed to float or integer), you cannot specify
  326.    a numeric min. and max. as you did with the cost attribute. In this case,
  327.    if you want to display this attribute in the graphics window, you will
  328.    need to map a particular text value to a color value. Click on Display-
  329.    Edit Display List and add Processor Brand from the upper left list box.
  330.    Unlike the min and max dialog which appeared for the cost attribute, a
  331.    different dialog window appears. Mirage has detected that the Processor
  332.    Brand attribute is of text data type and therefore you need to directly map
  333.    the textual values to particular color values. You can map a maximum of
  334.    10 different textual values for each attribute or extra variable. 
  335.    Start from the top left edit box and enter Lentil, assign it a value of
  336.    255, below it enter IBW and assign it a value of 128, and then below it
  337.    enter MAD and assign it a value of 110. You cannot modify the min. and
  338.    max. color value as these are always going to be 0 and 255 respectively.
  339.    However, for each display variable of textual type you can specify a
  340.    default color value which will be displayed if none of the mappings 
  341.    match. In our case, since we have not mapped the text value "Lentil
  342.    Centium", any row with that text will display the default color value.
  343.    The default color value is initially 0 but you can change this to
  344.    be any value between 0 and 255. Now, click OK to exit the Map Textual
  345.    Dialog and then click on OK again to exit the Edit-Display List dialog.
  346.    You will notice that the display variable list contains the new entry which
  347.    you have just added. Incidently, if you wish to review any textual 
  348.    mapping you have created, click on the cell containing the name of the
  349.    display variable in the display variables window ( lower left corner of
  350.    the main window), and then select Display-Map Display Variable from the
  351.    main window menu. This brings up the dialog box that displays the textual
  352.    mapping for that variable ( you can also edit and add text entries at 
  353.    that point in time).  
  354.    
  355.         Now, invoke the Mirage Graphics Window ( click on the rightmost 
  356.    bitmap button). Click on Edit Active Variables and select Processor Brand.
  357.    After exiting the dialog box by clicking on OK you will notice that
  358.    Mirage has created another mini-window for the Processor Brand attribute. 
  359.    You can drag on the top portion of the mini-windows to move them around.
  360.    Now, select on different items from the control box or select Action Go
  361.    to see the color values for the Processor Brand attribute change depending
  362.    upon the value from the data sheet. 
  363.    
  364.         As stated before, we are to assume that although cost is still
  365.    a factor in our purchasing decision, the overriding factor is that the
  366.    PC be powered by a Lentil chip. Lets assume that 75% of the weight in
  367.    the decision making process should be assigned towards who the 
  368.    manufacturer is and 25% of the weight should be assigned towards cost.
  369.    How do we combine these two factors in our analysis? The solution is
  370.    to use a composite window. In the graphics window, you can invoke three
  371.    special types of mini-windows called composite windows. These mini-windows
  372.    bring into account an aggregate of multiple factors which are combined to
  373.    display a color which reflects the makeup of the composite specification.
  374.    Click on Composite from the graphics menu. This menu item has 3 sub-menu
  375.    items called COMPOSITE 1 to 3. Select any one of the three and from the
  376.    4 possible selections from the side menu, select Create Window. This
  377.    brings up the Edit Composite Window Dialog. Select Processor Brand from
  378.    the left listbox and then click on Add. This brings up another small
  379.    dilaog box where you can specify the percentage strength that the
  380.    selected attribute ( or extra variable) will exert upon this particular
  381.    composite window. Enter 75 and then click OK. Next, select Cost and then
  382.    click on Add again. Specify 25 as the percentage strength for cost.
  383.    Then click on OK and then once more to leave both dialogs. Note that
  384.    when you add up all the percentages for any particular composite window
  385.    it should add up to 100%. While in the Edit Composite Window dialog,
  386.    if you click on OK and your percentages do not add up to 100, you will
  387.    be notified to go back and edit the percentages. If you need to modify
  388.    the percentage point for any attribute, select it from the bottom list
  389.    box, click on delete, and then Add it again by selecting it from the
  390.    left list box. 
  391.    
  392.        Now make some different selections on the control box and watch
  393.    how the composite window colors are affected. Examine the data sheet
  394.    values for the two included attributes and confirm that the colors make
  395.    sense. Remember that you can choose to include any number of attributes
  396.    to be included in the makeup of a particular composite window as long
  397.    as their combined strength adds up to 100%. This should provide a
  398.    quick method to intuitively zero in on those PC models which possess the
  399.    features and capabilities you desire, and most importantly, the relative
  400.    strength of your desirability for a certain feature as expressed as a
  401.    percentage point. 
  402.    
  403.        Note also, that you can activate a maximum of 3 composite windows
  404.    at the same time. Therefore, you can create up to 3 different scenarios
  405.    which you can test out and see how each row of data measures up with
  406.    respect to each of them by placing the 3 composite windows next to
  407.    each other in the graphics window. Of course, you can watch individual
  408.    attributes ( and extra variables ) also if you wish at the same time.
  409.    If the graphics window starts to get crowded, you can enlarge it as
  410.    you can most windows. However, the mini-windows cannot be enlarged or
  411.    shrunk. Another key point is that you can change the control variable
  412.    by selecting Edit Control Variable from the graphics menu. Suppose,
  413.    in addition to the above critereon, it also became mandatory that the
  414.    hard disk size for the system you need to purchase must be a minimum
  415.    of 420 Megabytes. Select Edit Control Variable and select Hard Disk
  416.    Size from the list box and then click on OK. Notice that the change is
  417.    reflected in the control box. Now, as you change your selections in the
  418.    list box, you can choose to only select systems with a hard disk size
  419.    of 420 Megabytes or more.
  420.      
  421.       It is important to remember that when you close the graphics window,
  422.    or when you save the state of the present program in a .mrg file (will
  423.    be described later), the state of the graphics window is preserved so 
  424.    that when you open the graphics window again you can start up from where 
  425.    you left off. However, if you delete any display variable from the display 
  426.    variables list ( via the Display Edit Display List command in the main window
  427.    menu), the saved information pertaining to the composite windows is lost (you
  428.    will be warned about this if you attempt to delete a display variable
  429.    and Mirage is holding any composite window information). Of course, you
  430.    can always reactivate the composite window and enter the information
  431.    over again once you are in the graphics window. Also, note that the
  432.    composite information will not be lost if you add to the display 
  433.    variables list; they are only lost if you delete any display variables.
  434.       
  435.          
  436.    
  437.       One final note about mini windows in general. Individual attribute (or 
  438.    extra variable) mini-windows will display a cross hatched pattern
  439.    should their data sheet values fall outside the minimum and maximum
  440.    displayed on the display variables window. For composite windows,
  441.    if the color value for any component falls below 0, then during the
  442.    composite calculations the color value for that particular attribute
  443.    is set to 0. Likewise, if a component attribute has a color value that
  444.    goes above the interval, it is set to 255. Here is an example that
  445.    illustrates this point. You have two display variables Cost and Hard
  446.    Disk Size. The minimum and maximum for Cost is 1500 and 3000 respectively.
  447.    For Hard Disk Size, it is 200 and 600 respectively. Suppose you create
  448.    a composite window where the percentage strength of both these attributes
  449.    is 50% each. Now, during the course of your analysis, Mirage encounters
  450.    a PC model in the data sheet where the Cost is $1400 and Hard Disk Size is
  451.    600 MB. The 50% percentage strength from the Hard Disk Size attribute 
  452.    combined with the value lying at the maximum means that the color contribution
  453.    from this attribute is 128. For the cost attribute, its contribution is
  454.    0 ( the whole point being that although the cost of $1400 lies below 
  455.    the minimum $1500 specified, this particular attribute does not make
  456.    a negative contribution to the composite makeup ; it simply makes a
  457.    0 contribution). Thus, if the next model in the data sheet had a
  458.    a cost of $1300 and a hard disk size of 600, the composite window would 
  459.    display the same exact color.  
  460.    
  461.        At this point in time, you should be familiar enough with composite
  462.    windows that you can try creating your own makeups and checking out
  463.    the results in the graphics display.     
  464.    
  465.  
  466.  
  467. ---------------------------------------------------------------------------
  468.       4.             UTILIZING THE MIRAGE EXPERT SYSTEM
  469. ---------------------------------------------------------------------------      
  470.                                                        
  471.      For this section, open the computer.mrg file in the directory named
  472.    C:\MIRAGE\EXAMPLES\COMPUTER\STEP3 .
  473.  
  474.  
  475.        Suppose that during the course of your research in acquiring
  476.    information related to your PC purchase you have heard that although
  477.    the Centium chip is very fast, there is a bug in it which hangs
  478.    the computer if your hard disk size is greater than 400 MB. Also,
  479.    you have heard that the PCI controller type has problems interfacing 
  480.    with a 1X CD ROM drive. How do you take into account this type of 
  481.    extraneous knowledge when performing your analysis ?
  482.    
  483.        Well, the answer is that you utilize the expert system which 
  484.    occupies the lower right corner of the main window. Open the computer.mrg
  485.    file into Mirage. Notice that a new attribute "PROBLEMS" has been added 
  486.    to the last data column in the data sheet  Notice that the rules window
  487.    has two rules already set up. Click on the rules window and then click on 
  488.    the second from last bitmap button ( with the two red up and down arrows ).
  489.    This maximizes the rules window and you can view the full contents of both 
  490.    rules. The first rule sets all the values for the PROBLEMS attribute to 
  491.    "none". The second rule essentially states that if the Processor Brand 
  492.    attribute data contains the Lentil Centium chip, and the same model features 
  493.    a hard drive that is greater than 400 MB in size, then set the PROBLEMS 
  494.    attribute for the model to "chip-hard drive", signifying that there may be 
  495.    an incompatability problem between the chip and the hard drive specified for
  496.    this model. The next rule specifies that if the controller type is PCI and
  497.    the model also features a 1X CD ROM drive then set the PROBLEMS attribute
  498.    to "PCI-CD ROM". 
  499.    
  500.        These rules have been set up by the New Rules Dialog activated by the 
  501.    Rules-New command from the main window menu. For a complete description of 
  502.    how to set up the rules, modify the rules, and indeed all aspects of the 
  503.    expert system that is the mainstay of this software program, you will need
  504.    to read the Mirage User's Manual ( see readme.doc for details on ordering 
  505.    the user's manual and/or becoming a registered user of Mirage). Please note
  506.    that setting the rules up is a very quick and easy job and virtually all of 
  507.    the work is just point and click. There is almost no typing involved! 
  508.    
  509.        Now, click on PROBLEMS from the display variables window and then bring
  510.    up the Map Display Variable dialog for this particular attribute. Enter a 
  511.    color value of 0 for "none", a value of 120 for "chip-hard drive", and a 
  512.    value of 200 for "PCI-CD ROM". After you are done, click on OK and then 
  513.    bring up the graphics window. Select Edit Active Variables and make sure 
  514.    that the PROBLEMS attribute is active. Then select Action-Go. After this 
  515.    command has completed operation, look at the PROBLEMS attribute column in 
  516.    the data sheet. Note that all those models with the two potential problems 
  517.    as described above have been marked. At this point in time, you can save 
  518.    the data sheet to a text file by invoking the Export-Table Data + Attribute 
  519.    names command from the main window menu. You can also enter Replay mode in 
  520.    the graphics window ( but you have to do this immediately after Action-Go, 
  521.    otherwise as stated before, the replay information is lost). 
  522.   
  523.  
  524. --------------------------------------------------------------------
  525.    5.                  VACATION PLANNING EXAMPLE
  526. --------------------------------------------------------------------
  527.  
  528.                    
  529.     Open the C:\MIRAGE\EXAMPLES\VACATION\vacation.txt file.
  530.                    
  531.     For this example, lets assume that a family of four is planning
  532.     its next summer vacation and that we have compiled a list of the 
  533.     seventeen most appealing candidates along with information about
  534.     some of the most important attributes that each location contains.
  535.     Being that the interests of the individual members of the family
  536.     is not homogeneous, you want to base your decision by taking into
  537.     account everyone's likings. 
  538.     
  539.     So the first step you take is to come up with a list of attributes
  540.     that the members would like to have in their vacation spot in general.
  541.     These correspond to the attributes in the data table of the 
  542.     vacation.txt file. Then you give each member of the family a list of 
  543.     the attributes and ask them to provide you with a percentage weight 
  544.     for each of the attributes so that the total percentage for all the 
  545.     attributes adds up to 100%. So, for the entire family the total
  546.     breakdown might look like this :  
  547.                          
  548.                          AL     BILLIE      AISHA       SHEENA   AVERAGE
  549.                          ---    ------      -----       ------   -------
  550.     close to beach       30%    20%          50%          30%      32%
  551.     museums              20%    20%           0%          30%      17%
  552.     amusement parks      20%     0%          50%          40%      27%
  553.     lodging economy      20%     0%           0%           0%       5%
  554.     mountain scenery     10%     0%           0%           0%      2.5%
  555.     water scenery         0%    20%           0%           0%       5%
  556.     travel distance       0%     0%           0%           0%       0%
  557.     shopping              0%    40%           0%           0%      10%
  558.     
  559.     
  560.     The next step would be to put all the eight attributes into the
  561.     display variables list and textually map all of them to poor, fair,
  562.     good, and excellent ( except for close to beach which you map to
  563.     close, moderate, far). For attributes with four possible textual 
  564.     mappings, you assign the color values 0, 85, 170, and 255 respectively
  565.     for poor, fair, good, and excellent. Note that in the general case
  566.     where you need to textually map n distinct values equadistantly
  567.     with respect to each other, the formula for the color value distance
  568.     between each textual value is : 255 / (n-1). Thus, for n = 4, the
  569.     color values increase by 85 because 255 / (4-1) = 85. For the
  570.     attribute close to beach with 3 distinct text values ( close, 
  571.     moderate, and far), the color values are 0, 127, and 255 respectively
  572.     for far, moderate, and close. Now go on and map all the attributes
  573.     by invoking the Display-Edit Display List dialog. 
  574.     
  575.     Now, we need to open up the graphics window and create a COMPOSITE
  576.     mini-window which contains the entire list of the display variables
  577.     with each variable assigned a percentage strength equal to the
  578.     corresponding average ( last column from the table above ) for that
  579.     particular attribute. Note that since the total for the column does
  580.     not add up to exactly 100%, we will need to tweak one of the values, 
  581.     mountain scenery, to 4% instead of the original 2.5%. 
  582.     
  583.     Now you can select any location from the control box and see how
  584.     that location measures up to the preferences of your family. Note also
  585.     that you can tweak some display variables deliberately should a need
  586.     arise. For example, if money becomes tight you can move the
  587.     percentage strength for lodging economy from 5% to say 30% and take
  588.     some percentages away from some of the other variables.
  589.     
  590.     The finished example is set up in the 
  591.     C:\MIRAGE\EXAMPLES\VACATION\vacation.mrg file. 
  592.     
  593.     
  594.     
  595.     
  596.     
  597.     
  598.     
  599.     
  600.     
  601.          
  602. ----------------------------------------------------------------
  603.    4.                MISCELLENEOUS NOTES
  604. ----------------------------------------------------------------
  605.  
  606.  
  607.  * Keep in mind that context-sensitive help is available for
  608.    most dialog boxes and for most menu commands in the main
  609.    window and the graphics window. While a dialog box is 
  610.    invoked, click on the Help button. You can also select
  611.    Help-Index from the main menu to get help on most of the
  612.    commands from the main menu and the graphics menu.  
  613.    
  614.  * When importing data from a spreadsheet, most packages
  615.    will allow you to select a rectangular part of the data
  616.    sheet and save it to an ascii tab delimited .txt file.
  617.    While performing this, make sure that the saved file is
  618.    ascii ( you should be able to view it from the DOS command
  619.    line )  
  620.    
  621.  * You cannot select the cell which is currently being editted. 
  622.    If you want to include that cell in the selection, then 
  623.    select a different cell and then click on that cell and
  624.    drag the mouse. 
  625.    
  626.  * Also, whenever you edit the contents of a cell, the change 
  627.    is not acknowledged by Mirage until you press <Enter>. Thus,
  628.    if you change the value of a cell during the course of a 
  629.    graphical analysis, and then go back to the graphics window, 
  630.    make sure you had pressed <Enter> after making the changes 
  631.    in the data sheet. MAKE SURE YOU ALWAYS DO THIS, otherwise
  632.    the valid data table checking mechanism will not be able to 
  633.    work properly.    
  634.    
  635.  * When performing data analysis in the graphics menu, keep
  636.    in mind that the more mini-windows that are open at the
  637.    same time, the slower the display. Therefore, if there is
  638.    a need to speed up the display, remove any mini-windows 
  639.    whose corresponding attributes you do not need to look at.
  640.    
  641.  * The Mirage User's manual includes an example regarding a house
  642.    purchase. While working through this example, you will see
  643.    how the expert system can be utilized to help perform 
  644.    data analysis. It also has a chapter which elaborates on
  645.    how to best utilize the various features of the expert
  646.    system and how to perform error analysis. The manual also
  647.    explains how to manually map intervals for numerical display
  648.    variables and an example of how it can be used. To order
  649.    the Mirage User's manual see the readme.doc file. The order
  650.    form is the file order.doc.